import QtQuick 2.3
import QtQuick.Window 2.0
import "."
import "../javascript/Utils.js" as UtilsJS

Window {

    function loadMain() {
        UtilsJS.setDensidade(Screen.pixelDensity);
        mainWindow.source = "qrc:/qml/Main.qml";
    }

    Timer {
        id: timer
        interval: 1
        onTriggered: loadMain()
    }

    Component.onCompleted: {
        timer.start();
    }

    Loader {
        id: mainWindow
    }
}
